package com.qf.im.utils;

public class UserUtils {

    private static ThreadLocal<Integer> uidThreadLocal = new ThreadLocal<>();

    public static void setUid(Integer uid) {
        uidThreadLocal.set(uid);
    }

    public static Integer getUid(){
        return uidThreadLocal.get();
    }

    public static void clear(){
        uidThreadLocal.remove();
    }
}
